﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsForms2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

       

        private void label2_Click(object sender, EventArgs e)
        {
            BackColor = Color.Blue;
        }

       

        private void Form1_MouseClick(object sender, MouseEventArgs e)
        {
           // Form2 form2 = new Form2();
            //form2.Show();
            //this.Hide();
            var q= MessageBox.Show("禁止","你点错了",MessageBoxButtons.YesNo);
            if (q == DialogResult.Yes)
            {
                MessageBox.Show("你刚点了yes干嘛");

            }
            else {
                MessageBox.Show("你刚点了no干嘛");
            }
        }
    
        

        }
    }

